﻿@model ICollection<AuthenticationClientData>

@if (Model.Count == 0)
{
    <div class="message-info">
    </div>
}
else
{
    using (Html.BeginForm("ExternalLogin", "Account", new { ReturnUrl = ViewBag.ReturnUrl }))
    {
    @Html.AntiForgeryToken()
    <fieldset id="socialLoginList">
        <legend>Qual rede você deseja utilizar para fazer o login ?</legend>
        <p>
            @foreach (AuthenticationClientData p in Model)
            {
                <button class="btn btn-danger" type="submit" name="provider" value="@p.AuthenticationClient.ProviderName" title="Login usando sua conta do @p.DisplayName">@p.DisplayName</button>
            }
        </p>
    </fieldset>
    }
}
